<?php require_once('./modulos/header.php'); ?>
<?php require_once('./BD/Automovil/facturas_extraer.php'); ?>

           
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->
        
      
        
        
<?php  require_once('./modulos/navbar.php'); ?>         

    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
      <div class="container">
        <h1>Lista de Facturas</h1>
        <p>Aqui se encuentra todas las facturas realizadas por la concesionaria</p>
      </div>
    </div>

    
    
          
    <div class="container">
      <!-- Example row of columns -->
      <div class="row">
          
          
        <div class="col-lg-8">

          
            
         <div class="table-responsive">   
             <table id= "tablamesas" class="table table-bordered" >
              
              
                
                <thead>
                        <tr>
                                
                                <th>ID de Factura</th>
                                <th>Cliente que realizo la compra</th>
                                <th>Monto Total</th>                                
                        </tr>
                        
                </thead>
        
                <tbody align="center">
                    
                    
               <?php                                       
                  while ($registro= pg_fetch_row($datos)){
                      
                        $contador=0;      
                                foreach ($registro as $clave){

                                 $array[$contador]= $clave;  
                                 $contador ++;                        
                                } 

                 ?>                    
                             <tr>
                                <td data-title="ID de Factura"> <?php echo $array [0]; ?>  </td>
                                <td data-title="Cliente que realizo la compra"><?php echo $array [1]; ?></td>
                                <td data-title="Monto Total" class="numeric"><?php echo $array [2]; ?></td>
          
                                
                        </tr>                      
                  <?php }  ?>        
                        
                        
                </tbody>
                        
 
                        
                </tbody>               
            </table>    
        </div>
        </div>
        </div>    
            
        
          
             
            
      
    
      
            
            
            
     
          
      </div>

      <hr>

<?php require_once('./modulos/footer.php'); ?> 
      
      
    </div> <!-- /container -->

<?php require_once('./modulos/scriptjs.php'); ?> 
    
    </body>
</html>
